<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
    <title>ShellCheck: SC1112 – This is a unicode quote. Delete and retype it (or ignore/doublequote for literal).</title>
    <link rel="stylesheet" href="css/bootstrap.min.css" />
  </head>
  <body style="margin-left: auto; margin-right: auto; max-width: 800px">
    <h1>SC1112 – ShellCheck Wiki</h1>
    <a href="https://github.com/koalaman/shellcheck/wiki/SC1112">See this page on GitHub</a>
    <p style="display: none"><a href="index.html">Sitemap</a></p>
    <hr />
    <h2
id="this-is-a-unicode-quote-delete-and-retype-it-or-ignoredoublequote-for-literal">This
is a unicode quote. Delete and retype it (or ignore/doublequote for
literal).</h2>
<h3 id="problematic-code">Problematic code:</h3>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="SC1112.html#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="bu">echo</span> <span class="st">&#39;hello world’</span></span></code></pre></div>
<h3 id="correct-code">Correct code:</h3>
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="SC1112.html#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="bu">echo</span> <span class="st">&#39;hello world&#39;</span></span></code></pre></div>
<h3 id="rationale">Rationale:</h3>
<p>Some software, like OS X, Word and WordPress, may automatically
replace your regular quotes with slanted Unicode quotes. The shell does
not recognize these quotes and will not respect them.</p>
<p>In this case, you have slanted single quotes in a single quoted
string. Try deleting and retyping them, and/or disable “smart quotes” in
your editor or OS.</p>
<h3 id="exceptions">Exceptions</h3>
<p>If you want to use literal slanted single quotes for typographic
reasons, you can put them in double quotes to make ShellCheck ignore
them:</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="SC1112.html#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="bu">printf</span> <span class="st">&quot;Warning: ‘wakeonlan’ is not installed.</span><span class="dt">\\</span><span class="st">n&quot;</span></span></code></pre></div>
<p>You can also just <a href="ignore.html">ignore</a> this warning.</p>
    <hr />
    <p style='font-size: 80%'><a href="../index.html">ShellCheck</a> is a static analysis tool for shell scripts. This page is part of its documentation.</p>
  </body>
</html>


